<template>
    <div>
        <qf-image-cropper :width="500" :height="600" :radius="0" @crop="handleCrop"></qf-image-cropper>
    </div>
</template>

<script>
    // import QfImageCropper from '../../uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue';
    import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue';
    export default {
        components: {
            QfImageCropper
        },
        methods: {
            handleCrop(e) {
				const eventChannel = this.getOpenerEventChannel()
				eventChannel.emit('imgdata', {
					urlimg: e.tempFilePath
				})
				uni.navigateBack({
					delta: 1
				});
            }
        }
    }
</script>
<style scoped lang="scss">

	</style>